import pytest

from pages.homapage import HomePage


@pytest.fixture(scope="session", autouse=True)
def init_driver():
    """
    初始化driver
    :return:
    """
    print("开始执行测试用例")
    driver = HomePage()
    yield driver
    driver.my_quit()
    print("测试用例执行完毕")
